﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.Adapters;

namespace UrlRewriter
{
    public class RewriterControlAdapter : ControlAdapter
    {

        //使用自定义的HtmlWriter在生成的html页中将action写为重写前的URL
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        { 
            base.Render(new RewriterTextWriter(writer));
        }
    }
}
